package com.scs.application.modules.fsd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityIndexAnnotation;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "智能柜用户表")
@TableName("fsd_user")
@EntityIndexAnnotation(ux = {"job_number"})
public class FsdUser extends DataEntity {


    // id ,在父类中处理

//    @EntityFieldAnnotation(
//            text = "登录名",
//            length = "30",
//            not_null = false,
//            default_value = "",
//            comment = ""
//    )
//    private String code;

    @EntityFieldAnnotation(
            text = "用户名",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String userName;

    @EntityFieldAnnotation(
            text = "用户名拼音",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String userNamePy;

    @EntityFieldAnnotation(
            text = "工号",
            length = "10",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String jobNumber;

    @EntityFieldAnnotation(
            text = "密码",
            length = "32",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String password;

    @EntityFieldAnnotation(
            text = "职位",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String job;

    @EntityFieldAnnotation(
            text = "是否启用",
            length = "",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private Boolean disabled;

    @EntityFieldAnnotation(
            text = "备注",
            length = "250",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    @EntityFieldAnnotation(
            text = "卡号",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String cardId;

    @EntityFieldAnnotation(
            text = "关联id",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String relateId;
}
